<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$charset}">
<title>List Place</title>
</head>
<body>
{if isset($back)}
<a href="{$back}">戻る</a>
{/if}
<a href="/okute/request">メニュー</a>
<hr />
<form action="/okute/shelter/list" method="post">
<p>都道府県
<select name="prefecture">
<option value=''>全国</option>
{html_options options=$prefecture selected=$searchPref}
</select>
</p>
<p>キーワード
<input type="text" name="sortkey" value="{$sortkey}">
</p>
<input type="hidden" name="csrf" value="{$csrf}">
<input type="submit" value="送信">
</form>
<hr />
避難場所一覧(全{$page->totalItemCount}件)
{if $setShelter}
<p><font color="red">避難場所を登録してください</font></p>
{/if}
<ol start={$offset+1}>
{foreach from=$data item=shelter key=id name=loop1}
<li><a href="#SHELTER{$id}">{$shelter.name|escape}</a></li>
{/foreach}
</ol>
{if isset($page->previous)}<a href="/okute/shelter/list/page/{$page->previous}">&laquo;前&nbsp;</a>{/if}
{if isset($page->next)}<a href="/okute/shelter/list/page/{$page->next}">&nbsp;次&raquo;</a>{/if}
{foreach from=$data item=shelter key=id name=loop2}
<hr />
<p><a name="SHELTER{$id}">{$id}件目</a>
{if $role=="operator"}
<a href="/okute/shelter/edit/id/{$id}">情報を編集する</a>
{elseif $role=="requester"}
<a href="/okute/requester/shelter/id/{$id}">自分の避難場所に設定する</a>
{/if}
<br />
避難場所名称:{$shelter.name|escape}<br />
場所:{$shelter.prefecture|escape}{$shelter.city|escape}<br />
<a href="http://maps.google.com/maps?q={$shelter.lat_lng|escape}+({$shelter.name|escape|google_maps_escape})">Googleマップ</a><br />
避難者数:{if $shelter.population != "NULL"}{$shelter.population|escape}人{else}未登録{/if}<br />
</p>
{/foreach}
{if isset($page->previous)}<a href="/okute/shelter/list/page/{$page->previous}">&laquo;前&nbsp;</a>{/if}
{if isset($page->next)}<a href="/okute/shelter/list/page/{$page->next}">&nbsp;次&raquo;</a>{/if}
</body>
</html>
